{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "user_data = \"lin xue mei\"\n",
    "user_password = \"010707\"\n",
    "count = 3\n",
    "while True:\n",
    "    username = input(\"请输入正确的账号: \")\n",
    "    password = input(\"请输入正确的密码: \")\n",
    "    count -=1\n",
    "\n",
    "    if username == user_data:\n",
    "        if password == user_password:\n",
    "            print(\"登陆成功，欢迎\",username,\"使用~\")\n",
    "            break\n",
    "        else:\n",
    "            if count == 0:\n",
    "                print(\"您的账号被锁定，要5分钟之后再尝试\")\n",
    "                break\n",
    "            else:\n",
    "                print(\"您的账号或密码不正确，请重新输入，您还有\",count,\"次机会\")\n",
    "    else:\n",
    "        if count == 0:\n",
    "            print (\"您的账号被锁定了，要5分钟后再尝试\")\n",
    "            break\n",
    "        else:\n",
    "            print(\"您的账号或密码不正确，请重新输入，您还有\",count,\"次机会\")\n",
    "            week_time = int(time)\n",
    "            #week_time\n",
    "        if week_time == 1:\n",
    "            print(\"9:45-12:00 python语言\")\n",
    "            print(\"12:50-14:20 写作训练\")\n",
    "            print(\"16:10-17:35 排球\")\n",
    "        elif week_time == 2:\n",
    "            print(\"8:00-9:35 用户研究\")\n",
    "            print(\"14:30-15:55 新媒体时代的新闻评论\")\n",
    "            print(\"16:10-17:35 大学英语\")\n",
    "            print(\"18:45-20:55 毛概理论 \")\n",
    "        elif week_time == 3:\n",
    "            print(\"8:00-9:30 中外文化交流\")\n",
    "            print(\"9:45-12:00 融合新闻学\")\n",
    "            print(\"18:45-20:10 毛概实践\")\n",
    "        elif week_time == 4:\n",
    "            print(\"10:35-12:00 大学英语\")\n",
    "            print(\"14:30-16:50 创业基础实践\")\n",
    "        else:\n",
    "            print(\"周五没课\")   \n",
    "       "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
